Porphobilinogen deaminase (PBGD) catalyzes the formation of 1-hydroxymethylbilane (HMB), a crucial intermediate in tetrapyrrole biosynthesis, through a step-wise polymerization of four molecules of porphobilinogen (PBG), using a unique dipyrromethane (DPM) cofactor. Structural and biochemical studies have suggested residues with catalytic importance, but their specific role in the mechanism and the dynamic behavior of the protein with respect to the growing pyrrole chain remains unknown. Molecular dynamics simulations of the protein through the different stages of pyrrole chain elongation suggested that the compactness of the overall protein decreases progressively with addition of each pyrrole ring. Essential dynamics showed that domains move apart while the cofactor turn region moves towards the second domain, thus creating space for the pyrrole rings added at each stage. Residues of the flexible active site loop play a significant role in its modulation. Steered molecular dynamics was performed to predict the exit mechanism of HMB from PBGD at the end of the catalytic cycle. Based on the force profile and minimal structural changes the proposed path for the exit of HMB is through the space between the domains flanking the active site loop. Residues reported as catalytically important, also play an important role in the exit of HMB. Further, upon removal of HMB, the structure of PBGD gradually relaxes to resemble its initial stage structure, indicating its readiness to resume a new catalytic cycle.